import { defineConfig } from "vitepress"
import socialLinks from "./theme/module/socialLinks"
import sidebar from "./theme/module/sidebar"
import viteConfig from "./configModule/viteConfig"

export default defineConfig({
  title: "IndulgeBack",
  description: "liuwy's blog",
  head: [["link", { rel: "icon", href: "/favicon.ico" }]],
  lang: "zh-CN",
  lastUpdated: true,
  ignoreDeadLinks: true,
  base: "/",
  ...viteConfig,
  themeConfig: {
    logo: "/logo.svg",
    siteTitle: "IndulgeBack",
    lastUpdated: {
      text: "Updated at",
      formatOptions: {
        dateStyle: "full",
        timeStyle: "medium",
      },
    },
    outline: [2, 3],
    nav: [
      { text: "首页", link: "/" },
      { text: "博客", link: "/blogItem/🎊Start.md" },
    ],
    sidebar,
    socialLinks,
    footer: {
      copyright: "Copyright © 2024-present Levi Liu",
    },
    search: {
      provider: "local",
    },
  },
})
